<template>
  <div id="Map" style="height: 800px"></div>
</template>
<script>
export default {
  data(){
      return {
      }
  },
  created() {
    setTimeout(() => {
      this.initMap();
    }, 1000);
  },
  methods: {
    initMap() {
       var map = new AMap.Map("Map", {
        resizeEnable: true, //是否监控地图容器尺寸变化
        zoom: 11, //初始化地图层级
        center: [this.$route.query.two, this.$route.query.one], //初始化地图中心点
      });
       
    },
  },
};
</script>